home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
faq
/
vol15n14.zip
/
DDGAME.ZIP
/
ERROR.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-17
|
878b
|
38 lines
#include "StdAfx.h"
#include "Error.h"
#include <DDraw.h>
void DDrawError(CString error, HRESULT hResult)
{
CString result;
switch(hResult)
{
case DDERR_WRONGMODE:
result = "DDERR_WRONGMODE\n";
break;
case DDERR_NOEXCLUSIVEMODE:
result = "DDERR_NOEXCLUSIVEMODE\n";
break;
case DDERR_INVALIDOBJECT:
result = "DDERR_INVALIDOBJECT\n";
break;
case DDERR_SURFACELOST:
result = "DDERR_SURFACELOST\n";
break;
case DDERR_OUTOFMEMORY:
result = "DDERR_OUTOFMEMORY\n";
break;
case DDERR_INVALIDPARAMS:
result = "DDERR_INVALIDPARAMS\n";
break;
case DDERR_SURFACEBUSY:
result = "DDERR_SURFACEBUSY\n";
break;
case DDERR_WASSTILLDRAWING:
result = "DDERR_WASSTILLDRAWING\n";
break;
}
TRACE0(error + result + '\n');
}